// 入口文件

//导入vue
import Vue from 'vue'

//导入路由
import VueRouter from 'vue-router'
//挂载路由
Vue.use(VueRouter)

//导入自己的router
import router from './router.js'
// 按需导入 Mint-UI 中的组件
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem);

//导入vue-resource插件
import VueResource from 'vue-resource';
Vue.use(VueResource);

//导入mui插件
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
//导入APP组件
import app from './APP.vue';

let vm = new Vue({
    el: "#app",
    data: {},
    render: c => c(app),
    router //挂载对象
})
